From: Behnam Esfahbod Date: Mon, 11 Sep 2017 00:45:59 +0000 (-0700) Subject: [travis] Enable cache for $HOME/.cargo/bin/ X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~6^2~43^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=0971aac7cd29e073dddfe0cdbf38eb0a9304adcb;p=cargo.git [travis] Enable cache for $HOME/.cargo/bin/ This should accelerate the `cargo install mdbook` step under `install`, which is currently called on all linux+nightly setups. --- diff --git a/.travis.yml b/.travis.yml index b925208bc..c2f7ca36c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,10 @@ dist: trusty git: depth: 1 +cache: + directories: + - $HOME/.cargo/bin/ + matrix: include: - env: TARGET=x86_64-unknown-linux-gnu @@ -22,7 +26,7 @@ matrix: ALT=i686-unknown-linux-gnu rust: nightly install: - - cargo install mdbook + - mdbook --help || cargo install mdbook --force script: - cargo test - cargo doc --no-deps